#include <REGX52.H>
#include "delay.h"
#include "LCD1602.h"
#include "MatrixKey.h"
 
unsigned char keynum;

void main()
{
	LCD_Init();
	LCD_ShowString(1,1,"MatrixKey:");
	
	while(1)
	{
		keynum = MatrixKey();
		if(keynum)
		{
			LCD_ShowNum(2,1,keynum,2);
		}
	}
}